import { RouteConfig } from "vue-router";
import Layout from "@/layout/index.vue";

const logManage: RouteConfig = {
  path: "/log",
  component: Layout,
  redirect: "/log/manage_logs",
  name: "LogManage",
  meta: {
    title: "logsManagement",
    icon: "iconfont icon-userstoryicon",
    routerRuleName: "LogManage"
  },
  children: [
    {
      path: "manage_logs",
      component: () => import("@/views/log/manage_logs.vue"),
      name: "ManageLogs",
      meta: {
        title: "manageLogs",
        noCache: true,
        routerRuleName: "ManageLogs"
      }
    },
    {
      path: "terminal_logs",
      component: () => import("@/views/log/terminal_log.vue"),
      name: "terminalLogs",
      meta: {
        title: "terminalLogs",
        noCache: true,
        routerRuleName: "terminalLogs"
      }
    },
    {
      path: "user_logs",
      component: () => import("@/views/log/user_logs.vue"),
      name: "UserLogs",
      meta: {
        title: "userLogs",
        noCache: true,
        routerRuleName: "UserLogs"
      }
    }
  ]
};

export default logManage;
